import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login'
import Register from '@/components/register'
import user from '@/components/user'
import progress from '@/components/progress'
import examine from '@/components/examine'
import update from '@/components/update'
import friend from '@/components/friend'
import inviation from '@/components/inviation'
import course from '@/components/course'
import agent from '@/components/agent'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    // 注册
    {
      path: '/register',
      name: Register,
      component: Register
    },
    // 用户中心
    {
      path: '/user',
      name: user,
      component: user
    },
    // 进度
    {
      path: '/progress',
      name: progress,
      component: progress
    },
    // 审核
    {
      path: '/examine',
      name: examine,
      component: examine
    },
    // 升级
    {
      path: '/update',
      name: update,
      component: update
    },
    // 好友
    {
      path: '/friend',
      name: friend,
      component: friend
    },
    // 邀请
    {
      path: '/inviation',
      name: inviation,
      component: inviation
    },
    // 代人注册
    {
      path: '/agent',
      name: agent,
      component: agent
    },
    // 邀请
    {
      path: '/course',
      name: course,
      component: course
    }
  ]
})
